<template>
  <div>{{ store.count }}</div>
  <button @click="add">+1</button>
</template>

<script setup>
import { useStore } from '@/store/index';
let store = useStore();
const add = () => {
  store.count++;
};
</script>

<style scoped></style>